﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Emoney.UserTraining.Model
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class Traning_NetworkMeeting
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual int Id { get; set; }

        public virtual string userName
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public virtual string voip_meeting { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_name_dis
        {
            get
            {
                if (click_num != "0" && period != "0")
                {
                    return mtg_name + "<font style='color:red'>（周会议)</font>";
                }
                else if (click_num != "0")
                {
                    return mtg_name + "<font style='color:red'>（日会议)</font>";
                }
                else
                    return mtg_name;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_conent { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string txtteachar { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string txtreateachar { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string host_key { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_password { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string txt_phone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_view { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string email_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string use_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string host_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string pres_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string allperson { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string pri_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string radDisplayType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string radDisplayType_dis
        {
            get
            {
                if (radDisplayType == "1")
                    return "软件端";
                else
                    return "网页端";
            }
        }


        /// <summary>
        /// 
        /// </summary>
        public virtual string ddlarea { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string chblist_pro { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public virtual string chblist_pro_dis
        {
            get
            {
                string strPro = "," + chblist_pro + ",";
                string strProNew = "";
                if (strPro.Contains(",100,"))
                    strProNew += "乾坤版,";
                if (strPro.Contains(",101,"))
                    strProNew += "乾坤版体验,";
                if (strPro.Contains(",109,"))
                    strProNew += "盯盘先锋,";

                if (strPro.Contains(",121,"))
                    strProNew += "睿讯通,";
                if (strPro.Contains(",131,"))
                    strProNew += "主力版,";
                if (strPro.Contains(",151,"))
                    strProNew += "经典版L2,";

                if (strPro.Contains(",152,"))
                    strProNew += "领先版,";
                if (strPro.Contains(",202,"))
                    strProNew += "决策版,";
                if (strPro.Contains(",230,"))
                    strProNew += "经典版L1,";

                if (strPro.Contains(",212,"))
                    strProNew += "腾讯操盘手,";
                if (strPro.Contains(",220,"))
                    strProNew += "股票医生,";
                if (strPro.Contains(",700,"))
                    strProNew += "手机决策版,";
                if (strPro.Contains(",710,"))
                    strProNew += "手机主力版,";
                if (strPro.Contains(",800,"))
                    strProNew += "Pad主力版,";
                if (strPro.Contains(",900,"))
                    strProNew += "名家点金,";
                if (strPro.Contains(",102,"))
                    strProNew += "决策体验,";
                if (strPro.Contains(",158,"))
                    strProNew += "金管家,";

                if (strPro.Contains(",1131,"))
                    strProNew += "稳赢1号,";
                if (strPro.Contains(",1132,"))
                    strProNew += "稳赢2号,";
                if (strPro.Contains(",1133,"))
                    strProNew += "稳赢蓝筹,";
                if (strPro.Contains(",1134,"))
                    strProNew += "稳赢战略,";
                if (strPro.Contains(",1141,"))
                    strProNew += "智赢组合,";
                if (strPro.Contains(",1411,"))
                    strProNew += "新股模型,";
                if (strPro.Contains(",1412,"))
                    strProNew += "涨停模型,";
                if (strPro.Contains(",157,"))
                    strProNew += "资产倍增,";
                if (strPro.Contains(",211,"))
                    strProNew += "小额版,";
                if (strPro.Contains(",202100000,"))
                    strProNew += "决策加强版,";
                if (strPro.Contains(",116000000,"))
                    strProNew += "U+模型,";
                if (strPro.Contains(",zt_100,"))
                    strProNew += "乾坤版专场,";
                if (strPro.Contains(",zt_131,"))
                    strProNew += "主力版专场,";
                if (strPro.Contains(",zt_202,"))
                    strProNew += "决策版专场,";
                if (strPro.Contains(",zt_202100000,"))
                    strProNew += "决策加强版专场,";
                if (strPro.Contains(",zt_101,"))
                    strProNew += "体验版专场,";
                if (strPro.Contains(",zt_152,"))
                    strProNew += "领先版专场,";
                if (strPro.Contains(",zt_121,"))
                    strProNew += "睿讯通专场,";

                return strProNew == "" ? "" : strProNew.Substring(0, strProNew.Length - 1);
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public virtual string click_num { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string time_flag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual DateTime class_date { get; set; }

        /// <summary>
        /// 会议提前进入时间
        /// </summary>
        public virtual DateTime before_date
        {
            get
            {
                return class_date.AddMinutes(-Convert.ToInt32(before_time));
            }
        }

        /// <summary>
        /// 会议结束时间
        /// </summary>
        public virtual DateTime end_date
        {
            get
            {
                return class_date.AddMinutes(Convert.ToInt32(Duration_date));
            }
        }

        /// <summary>
        /// 
        /// </summary>
        public virtual string Duration_date { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Duration_date_dis
        {
            get
            {
                string time = class_date.ToString("yyyy-MM-dd HH:mm:ss");
                string num = Duration_date;
                int zf = 1;
                if (time == null || time == "")
                {
                    return "";
                }

                if (num == null || num == "")
                {
                    return time;
                }
                return Convert.ToDateTime(time).Add(new TimeSpan(0, 0, Convert.ToInt32(num) * zf, 0, 0)).ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
        /// <summary>
        /// 
        /// </summary>
        public virtual string before_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string before_time_dis
        {
            get
            {
                string time = class_date.ToString("yyyy-MM-dd HH:mm:ss");
                string num = before_time;
                int zf = -1;
                if (time == null || time == "")
                {
                    return "";
                }

                if (num == null || num == "")
                {
                    return time;
                }
                return Convert.ToDateTime(time).Add(new TimeSpan(0, 0, Convert.ToInt32(num) * zf, 0, 0)).ToString("yyyy-MM-dd HH:mm:ss");

            }
        }
        /// <summary>
        /// 周期性(0：每天，其它：每周，用|号格开每周几)
        /// </summary>
        public virtual string period
        {
            get;
            set;
        }
        /// <summary>
        /// 多次会议起始时间
        /// </summary>
        public virtual DateTime startDate
        {
            get;
            set;
        }
        /// <summary>
        /// 多次会议结束时间
        /// </summary>
        public virtual DateTime endDate
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public virtual string max_audio_chan { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string max_video_chan { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string max_video_size { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string def_video_size { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string video_frame_rate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string max_bandwidth { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string maliu { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_mode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string video_public { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string layout_mode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string video_layer { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string funSeting { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual DateTime createtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual DateTime updatetime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string satisfaction { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string isCreateMeeting { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string mtg_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string user_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string meeting_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string isRecommend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string video_Recommend { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string video_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string lecturerImage
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Gensee_URL { get; set; }
    }
    [Serializable]
    public class Traning_NetworkMeeting_Query : BaseQuery
    {
        public string keywords
        {
            get;
            set;
        }

        public DateTime StartDate
        { get; set; }
        public DateTime EndDate
        { get; set; }
    }
}
